﻿
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SDService.Filter
{

    public class MyGlobalFiler : ActionFilterAttribute
    {
        public override void OnResultExecuting(ResultExecutingContext context)
        {
            //base.OnResultExecuting(context);
            var objectResult = context.Result as ObjectResult;
            objectResult.Value = new { Code = "0", Msg = "", Data = objectResult.Value };
        }
    }
}
